// 催收表
const {DataTypes, db } = require("../db");
db.define('invoiceCs', {
id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true,comment:'表自增ID'},
tenantId:{type: DataTypes.INTEGER,allowNull:false,comment:'租户ID'}, 
iid:{type: DataTypes.INTEGER,allowNull:false,comment:'票据ID'}, 
toUid:{type: DataTypes.INTEGER,comment:'指派催收人'}, 
toName:{type: DataTypes.STRING(100),comment:'指派催收人'}, 
closeTime:{type: DataTypes.STRING(20),comment:'时间内完成'}, 
cby:{type: DataTypes.INTEGER,comment:'创建人'}, 
cname:{type: DataTypes.STRING(10),comment:'创建人'}, 
ctime:{type: DataTypes.STRING(20),comment:'创建时间'}, 

}, {
    tableName: 'invoice_cs',
    timestamps: false,
    comment: '催收表'
});